-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: adding -k to missing parts #840
Conversation
@@ -320,7 +320,7 @@ A model in Loco represents data *and* functionality. Typically the data is store | |||
Let's create a new model called `Article`: | |||
|
|||
```sh | |||
$ cargo loco generate model article title:string content:text | |||
$ cargo loco generate model article title:string content:text -k api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we do --api
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we support both options:
- --api, --htmx, --html
- --kind | -k [api|html|htmx]
but this is my bad; this flag is under scaffold only, not on the model generator. fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so let's use --api
since we generally want to move from -k KIND
to the specific flags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in all referances
related issue: #828